export namespace Operate {
  /* 标题操作名 */
  export enum Title {
    CREATE = '创建',
    ADD = '新增',
    UPDATE = '编辑',
    VIEW = '查看',
    CHECK = '审核',
    COPY = '复制'
  }
  /* 标题操作状态 */
  export enum Status {
    CREATE = 'CREATE',
    ADD = 'ADD',
    UPDATE = 'UPDATE',
    VIEW = 'VIEW',
    CHECK = 'CHECK',
    COPY = 'COPY'
  }

  export enum Order {
    ascend = '1',
    descend = '-1'
  }
}

export namespace Management {
  export enum RULE_TYPE {
    'Web攻击规则' = 'Web攻击规则',
    '网络攻击规则' = '网络攻击规则',
    'Web Shell规则' = 'Web Shell规则',
    '机器学习算法' = '机器学习算法'
  }
  export enum RULE_TITLE {
    'Web攻击规则' = '规则',
    '网络攻击规则' = '规则',
    'Web Shell规则' = '规则',
    '机器学习算法' = '模型'
  }
  export enum RULE_KEY {
    '规则' = 'rule',
    '模型' = 'model'
  }
  export enum RULE_CONFIDENCE_COLOR {
    '可信' = '#3FA80B',
    '高' = '#1CC2C1',
    '中' = '#F0B11B',
    '低' = '#FC8452'
  }
  export enum RULE_CHECK {
    '未校验' = '未校验',
    '校验中' = '校验中',
    '校验成功' = '校验成功',
    '校验失败' = '校验失败'
  }
  export enum RULE_CHECK_COLOR {
    '未校验' = 'rgba(0, 0, 0, 0.88)',
    '校验中' = '#1890FF',
    '校验失败' = '#FF4D4F',
    '校验成功' = '#52C41A'
  }
}
